<template>
  <div id="app">
    <h1>我是right组件</h1>
    {{"我是right组件add的值"+add}}
    <button @click="add++">+1</button>
  </div>
</template>

<script>
export default {
  data(){
    return{
      add:0
    }
  }

}
</script>

<style scoped>
#app{
  height: 200px;
  width: 50%;
  background-color: purple;
}

</style>

